package com.zqxq.lottery.mapper.sys;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zqxq.lottery.entity.bo.sys.AddSysActivityBO;
import com.zqxq.lottery.entity.bo.sys.LotteryKindBO;
import com.zqxq.lottery.entity.bo.sys.SysActivityBO;
import com.zqxq.lottery.entity.bo.sys.SysCouponBO;
import com.zqxq.lottery.entity.po.sys.LotteryKindPO;
import com.zqxq.lottery.entity.po.sys.SysActivityPO;
import com.zqxq.lottery.entity.vo.sys.LotteryKindVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Component(value = "sysActivityMapper")
public interface SysActivityMapper extends BaseMapper<SysActivityPO> {
    List<Map<String,Object>> querySysActivity(Page page,Map<String,Object> paramMap);
    void saveSysActivity(AddSysActivityBO bo);
    void updateSysActivity(AddSysActivityBO bo);
    void deleteSysActivity(String activityId);
    void deleteSysCoupon(String couponId);
    void saveSysCoupon(SysCouponBO bo);
    void updateSysCoupon(SysCouponBO bo);
    List<Map<String,Object>> querySysCoupon(Page page,Map<String,Object> paramMap);
    List<String> queryAcceptingUserCoupon(Page page);
    void updateUserCoupon();
    void updateCouponUsed(@Param("userId") Long userId,@Param("couponId") Long couponId);

    List<Map<String,Object>> getInviteRankByCount(@Param("agentIds") String agentIds);
    List<Map<String,Object>> getInviteRankMoney(@Param("agentIds") String agentIds);
}
